# Contributor: kohnish <kohnish@gmx.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: kohnish <kohnish@gmx.com>
pkgname=buildah
pkgver=1.15.1
pkgrel=0
pkgdesc="A tool that facilitates building OCI container images"
url="https://github.com/containers/buildah"
arch="all !mips !mips64" # fails to build on mips
license="Apache-2.0"
makedepends="go go-md2man lvm2-dev gpgme-dev libseccomp-dev btrfs-progs-dev bash"
subpackages="$pkgname-doc"
options="!check" # TODO: enable tests
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/buildah/archive/v$pkgver.tar.gz"

# secfixes:
#   1.14.4-r0:
#     - CVE-2020-10696

build() {
	GIT_COMMIT="$pkgver" make
}

package() {
	GIT_COMMIT="$pkgver" make install PREFIX=/usr DESTDIR="$pkgdir"
}

sha512sums="61cbe91867dc664a9e76b367e0f99bf5c797c68dda7182ed43c6a6a5a72a0f0519e45db6b2746b26933d829834757cc93bdbd30c62ce6a947ee546dbc1f930be  buildah-1.15.1.tar.gz"
